package day8.part1;

import java.util.Date;

/**
 * @Author juzipi
 * @Date 2021/6/18 14:26
 * @Info
 */
public class MyDateDemo {

    public static void main(String[] args) {
        My my = new My();
        my.year = 2000;
        my.month = 10;
        my.day = 11;
        My myGirl = new My();
        myGirl.year = 0;
        myGirl.month = 0;
        myGirl.day = 0;
        System.out.println(my);
        System.out.println(myGirl);
    }

}

class My{

    int year;
    int month;
    int day;

    @Override
    public String toString() {
        return "My{" +
                "year=" + year +
                ", month=" + month +
                ", day=" + day +
                '}';
    }
}

